﻿using System;
using System.Collections.Generic;
using System.Globalization;
using System.Text;
using Xamarin.Forms;

namespace MasterDetailTemplate.Converters
{
    /// <summary>
    /// 日历收藏控件转换器。
    /// By WZC
    /// </summary>
    public class IiconConVerter : IValueConverter
    {
        public object Convert(object value, Type targetType, object parameter,
            CultureInfo culture)
        {
            if ((int)value == 1)
            {
                return "\xe870";
            }
            else if ((int)value == 0)
            {
                return "\xe616";
            }

            return "";
        }

        public object ConvertBack(object value, Type targetType,
            object parameter, CultureInfo culture)
        {
            throw new NotImplementedException();
        }
    }
}
